import { PolylineEdge, PolylineEdgeModel } from "@logicflow/core";

class SequenceModel extends PolylineEdgeModel {
  // 设置边样式
  getEdgeStyle() {
    const style = super.getEdgeStyle();
    style.stroke = "#4078f2";
    return style;
  }

  // 设置边文本样式
  getTextStyle() {
    const style = super.getTextStyle();
    style.fontSize = 16;

    return style;
  }
}

export default {
  type: "okline",
  view: PolylineEdge,
  model: SequenceModel,
};
